package com.example.neteasecloudmusicapilearningproject.ktvSearch;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;


import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.example.neteasecloudmusicapilearningproject.R;

import java.util.ArrayList;
import java.util.List;

public class KtvSearchActivity extends AppCompatActivity {
    private List<KtvSearch> ktvSearchList = new ArrayList<>();
    private List<KtvSearch> ktvSearchList1 = new ArrayList<>();

    RecyclerView ktvSearchRv,playListRv,musicstoryRv,soundRv,recommendRv;
    LinearLayoutManager layoutManager,playListLm,musicstoryLm,soundLm,recommendLm;
    KtvSearchAdapter adapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ktvsearch_layout);

        initKtvsearch();
        //关注更新
        ktvSearchRv = findViewById(R.id.search_recyclerview);
        layoutManager = new LinearLayoutManager(this);
        layoutManager.setOrientation(LinearLayoutManager.HORIZONTAL);
        ktvSearchRv.setLayoutManager(layoutManager);


    }

    private void initKtvsearch() {
        KtvSearch app1=new KtvSearch("app1");
        ktvSearchList.add(app1);
        KtvSearch app2=new KtvSearch("app2");
        ktvSearchList.add(app2);
        KtvSearch app3=new KtvSearch("app3");
        ktvSearchList.add(app3);
    }

    /*private void initKtvsearch() {
        KtvSearch app1 = new KtvSearch("权游合集", R.drawable.welcome_3);
        ktvSearchList.add(app1);
        KtvSearch app2 = new KtvSearch("土豆合集", R.drawable.welcome_3);
        ktvSearchList.add(app2);
        KtvSearch app3 = new KtvSearch("权游", R.drawable.welcome_3);
        ktvSearchList.add(app3);
        KtvSearch app4 = new KtvSearch("土豆", R.drawable.welcome_3);
        ktvSearchList.add(app4);
    }*/


}


